package com.study.spring.tcp;

import java.io.IOException;
import java.net.Socket;

/**
 * 功能描述：
 * <p>
 * author: ZACK
 * date: 2021/4/22 22:14
 */
public class TestSocket {

    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("110.242.68.4", 80);
        socket.setSoTimeout(30000);
        socket.getOutputStream().write(1);
        socket.getOutputStream().flush();

//        List
//        Map
    }
}
